import request from '@/utils/request'

// 查询用户交流列表
export function listCommunication(query) {
  return request({
    url: '/communication/communication/list',
    method: 'get',
    params: query
  })
}

// 查询用户交流详细
export function getCommunication(ucId) {
  return request({
    url: '/communication/communication/' + ucId,
    method: 'get'
  })
}

// 新增用户交流
export function addCommunication(data) {
  return request({
    url: '/communication/communication',
    method: 'post',
    data: data
  })
}

// 修改用户交流
export function updateCommunication(data) {
  return request({
    url: '/communication/communication',
    method: 'put',
    data: data
  })
}

// 删除用户交流
export function delCommunication(ucId) {
  return request({
    url: '/communication/communication/' + ucId,
    method: 'delete'
  })
}

// 导出用户交流
export function exportCommunication(query) {
  return request({
    url: '/communication/communication/export',
    method: 'get',
    params: query
  })
}

// 获取交流
export function getUserCommunication() {
  return request({
    url: '/communication/communication/getRoot',
    method: 'get',
  })
}

